#if !defined(AFX_LOGINDLG_H__D5879BB3_B2A2_4A75_9CC3_8E81CC2DED55__INCLUDED_)
#define AFX_LOGINDLG_H__D5879BB3_B2A2_4A75_9CC3_8E81CC2DED55__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LoginDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CLoginDlg dialog

class CLoginDlg : public CDialog
{
// Construction
public:
	int nLoginMode;
	void LoadConfig();
	void SetConfig();
	BOOL LoadPersonInfo();
	BOOL LoadOnePerson(CString& strPath,CString& strSubPath);

	static UINT VideoThreadProc(LPVOID lpVoid);
	void ProcessCurrFrame();
	UINT OnIdentifyVerify(WPARAM wParam,LPARAM lParam);

	CButtonST m_Logon;
	CButtonST m_VedioConfig;
	CButtonST m_ShutDown;
	CButtonST m_Cancel;

	CWinThread* m_pCapThread;
	BOOL m_bCapThreadExit;
	HWND m_hVideoWnd,m_hPOPVideoWnd;//change by sj 
	long m_nIdentifyStatus;
	CTime m_StartIdentifyTime;
public:
	CString  m_strPSW, m_strUserName, m_strDomain;
	CLoginDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CLoginDlg)
	enum { IDD = IDD_LOGON_DLG };
	CComboBox	m_SelectMode;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLoginDlg)
	public:
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
private:
	CString m_strServerName;
	UINT	m_nServerPort;
	UINT m_nServerThreadID;
	int m_iSetDefSel;
	int m_nVideoWidth;
	int m_nVideoHeight;
	void ExitSystem();
// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CLoginDlg)
	virtual void OnCancel();
	afx_msg void OnClose();
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	afx_msg void OnShutdown();
	afx_msg void OnSelendokSelectmode();
	afx_msg void OnVedioconfig();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_LOGINDLG_H__D5879BB3_B2A2_4A75_9CC3_8E81CC2DED55__INCLUDED_)
